import java.util.LinkedList;

public class Problem {
	LinkedList<Comparison> comparisons = new LinkedList<Comparison>();
   String sampleImage = "";
   int reinforcer = 0; // can be an integer 0-3.
   int comparisonCounter = 0;
   boolean MTS = true;
   
   //Initialize the problem with its type, match to sample or delayed.
   public Problem(boolean type){
	   MTS = type;
   }
  
   public void setSample (String samp){
	   sampleImage = samp;
   }
   public void setReinforcer(int r){
	   this.reinforcer = r;
   }
   public int getReinforcer(){
	   return this.reinforcer;
   }
   //Image sample location.
   public String getSample (){
	   return sampleImage;
   }

   //Number of comparisons.
   public int getNoOfComparisons(){
	   return comparisonCounter;
   }
   public void addComparison (String compImg, boolean answer){
	   comparisons.addLast(new Comparison(compImg, answer));
	   comparisonCounter++;
   }
   public void removeComparison (int index){
	   comparisons.remove(index);
	   comparisonCounter--;
   }
   public Comparison getComparison (int index){
	   return comparisons.get(index);
   }
   //Match to sample
   public void setMTS(boolean mode){
	   MTS = mode;
   }
   public boolean isMTS(){
	   return MTS;
   }
}
